package com.mj.haier.calc.client;

import com.mj.haier.calc.domain.*;
import java.util.*;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "microrrskx", path = "/api", fallback = FeignClientHystrix.class, configuration = { UserFeignClientInterceptor.class })
public interface RrskxClient {

    @GetMapping("/bd-switchers/{switcherValue}")
    BdSwitcher getBdSwitcher(@PathVariable("switcherValue") String switcherValue);


    @GetMapping("/cars-team-infos/byNetpoint/{netpoint}")
    public List<CarsTeamInfo> searchCarsTeamInfosByNetpoint(@PathVariable("netpoint") String netpoint);


    @GetMapping("/cars-infos/{carsId}")
    public CarsInfo getCarsInfo(@PathVariable("carsId") String carsId);

    @GetMapping("/az-eorders/{switcherValue}/{limit}")
    public List<AzEorderTitle> getAllAzEorders(@PathVariable("switcherValue") String switcherValue, @PathVariable("limit") Integer limit);


    @GetMapping("/update/az-order-title-fin/{tradeCode}/{orderCode}")
    public int updateAzOrderTitleFinSettle(@PathVariable("tradeCode") String tradeCode, @PathVariable("orderCode") String orderCode);
}
